<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function get($key){
    if(isset($_GET[$key]))
        return $_GET[$key];
    return '';
}
function post($key){
    if(isset($_POST[$key]))
        return $_POST[$key];
    return '';
}

function isPost(){
    return $_SERVER["REQUEST_METHOD"] == 'POST';
}
/**
 *页面跳转
 * @param type $url 
 */
function go($url){
    header(sprintf('Location: %s',$url));
    die();
}







?>
